package com.musicalevents.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/access")
public class AccessController {
	
	@RequestMapping("/login.htm")
	public String goToLoginPage() {
		return ("access/login");
	}

	@RequestMapping(value = "/login-error.htm")
 	public String loginFailure(Model m) {
		m.addAttribute("authentication_error", true);
		return ("access/login");
	}
	
	@RequestMapping("/denied.htm")
	public String goToAccessDeniedPage() {
		return ("access/denied");
	}
}
